package com.itbbj.principle.d2_LSP.demo2;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: jack_yang
 * @Date: 2024/5/6
 * @Description: addition and subtraction
 */
public class Animal  {


    protected double runSpeed;
    public void setRunSpeed(double runSpeed) {
        this.runSpeed = runSpeed;
    }
    public double calcuRunTime(double distance) {
        return distance / runSpeed;
    }
}
